<?php


namespace app\user\model;


use app\index\model\Base;//default 不变，不要改

class Healthdata extends Base
{
    protected $pk = 'id';
    public function user()
    {
        return $this->belongsTo('User','u_id','u_id');
    }
    public function dataType()
    {
        return $this->belongsTo('DataType','type','id');
    }
}